class Api::CategoriesController < Api::BaseController

  def index
    @categories = Category.all
    items = @categories.map{|c| c.summary_builder}
    api_success(message: '', data: { items: items })
  end

end
